import { ref } from 'vue'
const data = ref([
	{
        "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	  "userName": "张三",
	  "concern": false,
	  "collection": false,
	  "like": {
		  "total": 35,
		  "islike": false
	  },
	  "comments": [
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "赵六",
	      "commentText": "我之前用的就是这款手机，非常满意，值得信赖的品牌和质量。",
	      "commentTime": "2024-04-05T13:00:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "钱九",
	          "commentText": "同感，我也觉得这款手机很棒！",
	          "replyTime": "2024-04-05T13:10:00Z"
	        }
	      ]
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "钱七",
	      "commentText": "我也考虑过买这款，但是感觉价格有点偏高，还在观望中。",
	      "commentTime": "2024-04-05T13:30:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "周九",
	      "commentText": "对于这个价格，我觉得还是可以接受的，毕竟是一部高端手机。",
	      "commentTime": "2024-04-05T14:30:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "吴十",
	          "commentText": "是的，这个价格相对于配置和品质来说还是很合理的。",
	          "replyTime": "2024-04-05T14:40:00Z"
	        },
	      ]
	    }
	  ],
	  "trade": {
	    "name": "iPhone 12 Pro Max",
          "price": 5,
	    "type": "手机",
          "introduce": "校园珍品专业书盲盒,<br/>内涵笔记，签名等，<br/>包邮同时欢迎客服交流上架产品",
	    "urls": [
            "./img/一_1.png",
            "./img/一_2.png"
	    ]
	  }
	},
	{
        "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	  "userName": "张三",
	  "concern": false,
	  "collection": false,
	  "like": {
	  		  "total": 35,
	  		  "islike": false
	  },
	  "comments": [
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "王五",
	      "commentText": "这个价格有点贵啊，我觉得还是等一等可能会有更好的优惠。",
	      "commentTime": "2024-04-05T12:30:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "赵六",
	      "commentText": "我之前用的就是这款 MacBook，非常满意，性能稳定，值得信赖的产品。",
	      "commentTime": "2024-04-05T13:00:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "钱九",
	          "commentText": "同感，我也觉得这款 MacBook 很棒！",
	          "replyTime": "2024-04-05T13:10:00Z"
	        },
	      ]
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "孙八",
	      "commentText": "16 寸的 MacBook Pro 看起来很霸气，配置也很强大，考虑入手一部。",
	      "commentTime": "2024-04-05T14:00:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "周九",
	      "commentText": "这个价格相对于配置和品质来说还是很合理的，我也打算入手一台。",
	      "commentTime": "2024-04-05T14:30:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "郑十一",
	          "commentText": "我也觉得价格很合理，可以考虑购买。",
	          "replyTime": "2024-04-05T14:50:00Z"
	        }
	      ]
	    }
	  ],
	  "trade": {
	    "name": "MacBook Pro 16 寸",
          "price": 15,
	    "type": "电脑",
          "introduce": "蓝色小鱼模型，无划痕，99新<br/>无任何损坏<br/>建议速购<br/>",
	    "urls": [
            "./img/二_1.png",
            "./img/二_2.png"
	    ]
	  }
	},
	{
        "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	  "userName": "张三",
	  "concern": false,
	  "collection": false,
	  "like": {
	  		  "total": 35,
	  		  "islike": false
	  },
	  "comments": [
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "李四",
	      "commentText": "PS5 真的很强大，游戏体验超赞，强烈推荐购买！",
	      "commentTime": "2024-04-05T12:00:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "赵六",
	      "commentText": "我已经预定了一台，迫不及待想要体验了！",
	      "commentTime": "2024-04-05T13:00:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "钱九",
	          "commentText": "我也是，等待已久，终于要拥有了！",
	          "replyTime": "2024-04-05T13:10:00Z"
	        }
	      ]
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "钱七",
	      "commentText": "游戏机价格一直很高，但对于游戏爱好者来说，确实是个不错的选择。",
	      "commentTime": "2024-04-05T13:30:00Z",
	      "replies": []
	    }
	  ],
	  "trade": {
	    "name": "Sony PlayStation 5",
          "price": 3,
	    "type": "游戏机",
          "introduce": "绘画螺帽模型，<br/>完好无损，<br/>在各种光照下可产生不同阴影<br/>",
	    "urls": [
            "./img/三_1.png",
            "./img/三_2.png",
	    ]
	  }
	},
	{
        "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	  "userName": "张三",
	  "concern": false,
	  "collection": false,
	  "like": {
	  		  "total": 35,
	  		  "islike": false
	  },
	  "comments": [
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "李四",
	      "commentText": "Canon EOS R5 的拍摄效果真的很棒，色彩还原非常出色。",
	      "commentTime": "2024-04-05T12:00:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "赵六",
	      "commentText": "我已经入手了一台，拍摄效果真的不错，非常满意。",
	      "commentTime": "2024-04-05T13:00:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "钱九",
	          "commentText": "同感，我也是最近入手了一台，体验非常好。",
	          "replyTime": "2024-04-05T13:10:00Z"
	        }
	      ]
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "钱七",
	      "commentText": "Canon EOS R5 的自动对焦功能真的很强大，拍摄体验非常流畅。",
	      "commentTime": "2024-04-05T13:30:00Z",
	      "replies": []
	    }
	  ],
	  "trade": {
	    "name": "Canon EOS R5",
          "price": 50,
	    "type": "相机",
          "introduce": "英文原装书，<br/>略有凹痕，<br/>书页完整无缺失，<br/>纸张未发黄<br/>",
	    "urls": [
            "./img/四_1.png",
            "./img/四_2.png",
	    ]
	  }
	},
	{
        "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	  "userName": "张三",
	  "concern": false,
	  "collection": false,
	  "like": {
	  		  "total": 35,
	  		  "islike": false
	  },
	  "comments": [
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "李四",
	      "commentText": "Dyson V11 吸尘器真的很强大，吸力很大，清洁效果很好。",
	      "commentTime": "2024-04-05T12:00:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
            "userName": "赵六",
            "commentText": "我家也有一台，用了一段时间了，非常满意。",
            "commentTime": "2024-04-05T13:00:00Z",
            "replies": [
                {
                    "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
                    "userName": "钱九",
                    "commentText": "是的，我家也是，吸力很强，而且使用起来很方便。",
                    "replyTime": "2024-04-05T13:10:00Z"
                }
            ]
        },
          {
              "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
              "userName": "钱七",
              "commentText": "Dyson V11 的电池续航时间很长，可以清洁大面积的地方。",
              "commentTime": "2024-04-05T13:30:00Z",
              "replies": []
          }
      ],
        "trade": {
            "name": "Dyson V11 吸尘器",
            "price": 218,
            "type": "家电",
            "introduce": "东野圭吾作品集（17册）<br/>二手包装，<br/>最大程度减少磨损，<br/>下单后48小时内发货<br/>",
            "urls": [
                "./img/五_1.png",
                "./img/五_2.png",
            ]
        }
    },
    {
        "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
        "userName": "张三",
        "concern": false,
        "collection": false,
        "like": {
            "total": 35,
            "islike": false
        },
        "comments": [
            {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
                "userName": "李四",
                "commentText": "Dyson V11 吸尘器真的很强大，吸力很大，清洁效果很好。",
                "commentTime": "2024-04-05T12:00:00Z",
	      "replies": []
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "赵六",
	      "commentText": "我家也有一台，用了一段时间了，非常满意。",
	      "commentTime": "2024-04-05T13:00:00Z",
	      "replies": [
	        {
                "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	          "userName": "钱九",
	          "commentText": "是的，我家也是，吸力很强，而且使用起来很方便。",
	          "replyTime": "2024-04-05T13:10:00Z"
	        }
	      ]
	    },
	    {
            "userAvatarUrl": "https://tupian.qqw21.com/article/UploadPic/2020-6/20206222151383431.jpg",
	      "userName": "钱七",
	      "commentText": "Dyson V11 的电池续航时间很长，可以清洁大面积的地方。",
	      "commentTime": "2024-04-05T13:30:00Z",
	      "replies": []
	    }
	  ],
	  "trade": {
	    "name": "Dyson V11 吸尘器",
          "price": 25,
	    "type": "家电",
          "introduce": "南大往事，一本25，<br/>包邮，<br/>二手重新包装，<br/>书页略有发黄<br/>",
	    "urls": [
            "./img/六_1.png",
            "./img/六_2.png",
	    ]
	  }
	}
]);
/* 模拟数据请求 */
export const ajax = (page = 1,size = 5) => {
    const result = ref([])
	result.value = data.value.slice((page - 1) * size, (page - 1) * size + size)
	return new Promise((resolve, reject)=>{
		setTimeout(()=>{
			resolve(result.value)
        }, 500)
	})
}